import { Get } from './request';

/** 获取电梯信息
 * deviceSn
 */
export const getLiftInfoApi = (params: any) => Get('/api/lifts/info', params)

/**  
 * 设备维护信息
 * deviceSn
*/
export const getLiftMaintanceApi = (params: any) => Get('/api/lifts/maintenance', params)

/**  
 * 
 * deviceSn
*/
export const getLiftAppDataApi = (params: any) => Get('/api/lifts/appData', params)

/** 获取消息
 * deviceSn
 */
export const getLiftMessageApi = (params: any) => Get('/api/messages/', params)

/** 获取底部信息
 * deviceSn
 */
export const getBottomInfoApi = (params: any) => Get('/api/lifts/bottomInfo', params)

/** gps 转 地理位置
 * key 
 * location
 */
export const getLocationApi = (params: any) => Get('https://restapi.amap.com/v3/geocode/regeo', params)

export interface IWeather {
    hourMin?: string, // 时分
    monthDay?: string, // 月日
    adcode: number,
    city: string,
    humidity: number,
    province: string,
    reporttime: string,
    temperature: number,
    weather: string,
    winddirection: string,
    windpower: string,
}
/** 获取天气信息
 * key
 * city
 */
export const getWeatherApi = (params: any) => Get('https://restapi.amap.com/v3/weather/weatherInfo', params)


/** 获取电梯图片
 * liftSn
 */
export const getLiftImageApi = (params: any) => Get('/api/lifts/getLiftItem', params)
